From: Florian Müllner Date: Thu, 18 Sep 2014 14:33:13 +0000 (+0100) Subject: appDisplay: Hide empty app folders X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~2095 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=3ae45bddadd847961766b6a7cc2a843ca828e331;p=gnome-shell.git appDisplay: Hide empty app folders Trying to open an empty folder currently leaves the parent view in a rather confused state. While we should look into fixing this in the future, empty folders are not useful at all to begin with, so hide them. https://bugzilla.gnome.org/show_bug.cgi?id=736910 --- diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index 8f5c146df..1e9401574 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -1267,6 +1267,7 @@ const FolderIcon = new Lang.Class({ addAppId(appInfo.get_id()); }); + this.actor.visible = this.view.getAllItems().length > 0; this.view.loadGrid(); this.emit('apps-changed'); },